package com.fujica.invoicing.controller;

import com.fujica.invoicing.service.IPayMethodService;
import com.fujica.invoicing.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName PayMethodController
 * @Description TODO
 * @Author admin
 * @Date 2020/8/18 17:14
 * @Version 1.0
 **/

@RestController
@Api(tags = "支付方式")
@RequestMapping("invoicing/payMethod")
public class PayMethodController {

    @Autowired
    private IPayMethodService iPayMethodService;

    // 获取所有的支付方式
    @GetMapping
    @ApiOperation("获取所有的支付方式")
    public Result list() {
        return iPayMethodService.list();
    }
}
